package com.ccx.demo.service;

import com.ccx.demo.pojo.SysRole;
import com.ccx.demo.pojo.SysUser;

import java.util.List;

public interface SysUserService {
    SysUser SelectUsernameByName(String username);

    String SelectPassword(String username);

    SysRole SelectRole(int userId);

    List<String> selectIdAuthority(int id);

    boolean addUser(SysUser user);

    boolean addUserRole(Integer user_id,Integer role_id);

    List<SysUser> QueryAll();

    List<SysRole> QueryByRole();

    boolean DelById(Integer id);
}
